package org.flow.basic.vector_api;

import jdk.incubator.vector.IntVector;

/**
 * @author xl-9527
 * @since 2025/3/20
 **/
public class VectorDemo {

    public void vectorIntArrays() {
        IntVector intVector = IntVector.fromArray(IntVector.SPECIES_PREFERRED, new int[]{1, 2, 3, 4, 5, 6, 7, 8}, 0);
        for (final int i : intVector.toArray()) {
            System.out.println(i);
        }
    }
}
